/*
 * UserInfo.h
 *
 *  Created on: May 16, 2012
 *      Author: Lucho0
 */

#ifndef USERINFO_H_
#define USERINFO_H_

#include "../Widget.h"
#include "ProgressBar.h"

//TODO cambiar por container, no widget.
class UserInfo: public Widget {
public:
	UserInfo(std::string userName, int life, int posX, int posY, Widget* parent);
	virtual ~UserInfo();


	virtual void showOn(SDL_Surface* surface);

	//TODO Implement!
	void reduceLife(int value);
	void updatePosition();

private:
	int initialLife;

	ProgressBar* progressBar;
	Label* userName;
};

#endif /* USERINFO_H_ */
